#pragma once

#include "Master.hpp"
#include "cybertron/node/BaseApp.hpp"

class MasterServer : public SocketTcpServer
{
public:
	static MasterServer * GetInstance()
	{
		static MasterServer instance;
		return &instance;
	}
	MasterServer();
	virtual ~MasterServer();
	void SetListenPort(int ListenPort);

	void run();

private:
	void zeroMembers();
	void clearThis();

protected:
	virtual void onAccept(SocketBasePtr pRemoteSocket);

	int mListenPort;

	
	//SimOneEnv::SimOneSONServerInfo mSonServerInfo;
};
